Making javascript pass lint checks. Also added google closure minified version.

Most lint checks pass now except for a few 'for in' constructs which would have been more work to fix. Will consider fixing them in my next pass.