Update controller.js

Possible misprint: new Editor(); instead of newEditor();