Fixes some more jshint errors in files. Added globals mocha and mochaPhantomJS in jshintrc.