Jshint ci

@mauk81 committing files in the future!  Weird! :)

Used @mauk81 's commits to enable jshint on our existing repo, then fixed up javascript.  Works!