Print out compile errors in the browser

This will make the bundle file print to `console.error` in the browser in case there was an error compiling