Better handle errors-like objects
Debug mode: reload new globals.js using Ctrl+Alt+R
(#18)