fixing a few jshint errors