rearranged body-editor.js