Use prototype for ScriptEditor.