Fix Google Closure returning JSLint-style errors therefore failing to ca...

...ll JQuery.ajax().done()

Signed-off-by: Alex Wendland <me@alexwendland.com>

This also adds an error message for when minification of JS files fails.