Fixing JSLint errors. Also fixing minification by Jammit, which resulting in an error on minification.