Add jshint, fix hinted errors, wrap files in scopes via IIFEs
Merge branch 'master' into gh-pages