Moved editor creation code into separate file
merging from neunenak/origin, adding editor.js to minified JS