fixed a few jshint issues