Only use minified JavaScript when DEBUG is off

This makes it easier to inspect the code that is being used when trying
to track down a problem in the JavaScript.