diff --git a/src/sbbs3/js_cache.h b/src/sbbs3/js_cache.h
index f9a9a6561cf6948fee9a0431becb1c452dfefca9..14eb2ddb2d7289ea55634bf4f0539e887bce4111 100644
--- a/src/sbbs3/js_cache.h
+++ b/src/sbbs3/js_cache.h
@@ -18,7 +18,7 @@ struct cache_data {
 	ulong	runcount;			/* Number of times this script has been used */
 	time_t	lastrun;			/* Time script was last ran */
 	time_t	laststat;			/* Time of last call to stat() */
-	JSScript	*script;
+	JSObject	*script;
 	int		running;			/* Count of currently running scripts */
 	int		expired;			/* TRUE if last stat() makes this as stale and
 								 * running was non-zero */
@@ -43,7 +43,7 @@ extern "C" {
  * Compiles it and adds to the cache if not.
  * Increments running value.
  */
-JSScript *js_get_compiled_script(JSContext *cx, char *filename);
+JSObject *js_get_compiled_script(JSContext *cx, char *filename);
 
 /*
  * Starts the caching thread.  The caching thread periodically