remove unused ScriptEngine code