Fixing all the jshint problems. Also fixes #211