made dev dependencies as devDependencies in package.json and made mocha global
lot of small changes, cleanup and found better ways to use promises
cleanups
added ability to reload the code
removed ugly duplication
changed the id of the 'save' button to have all parts of the ide be prefixed by 'ide-'
renamed ide test file to ide.test.js
pretend that my code can handle an event and write to the console
it does
changed the default code to something relevant and use an array for logs to ease manipulations of multiple log entries