Moved editor-related code to editor.js
Sidebar should be page-specific