script.js no longer contains editor-specific code, which has been moved to the edit_... templates; fixes #1