Added Google Closure compilation to the JS source, and a 'compiled' flag to switch between debug and release sources in the template.