yeah, I know, this is silly to put in a commit, but meh
Object.keys doesn’t work in older browsers, adding in a util function for it, thanks to Marcelo Pereira de Oliveira for the fix
always use ‘var’
adding in handlers for empty arrays and objects when it makes sense
just a note in case this needs improvement
Function.prototype.bind polyfill to handle old browsers, this should be sufficient but just in case we can use the real polyfill
if warnings or errors are present, colour the open/close buttons accordingly and open the toolbar so people can’t miss it!