Fix JSlint issues
Merge branch 'master' into gh-pages