format editor.js