fixed few jshint warnings