change ScriptCache scriptCache to static