Update ScriptManager.java