Fix jshint bugs, minify

Fix bugs and minify assets for production