fixed a few jshint errors