fix editor.js for Firefox 27/Aurora

The extension stops working somewhere between 2013-10-25	and 2013-10-31 builds of Aurora.
Probably needs more fixes, i see some errors in the browser console.