correct 2 typos; editor was initialized twice

due to window.onload call being in minified code as well. Also updated
plugin-order for closure-compiler