jshint warnings fixed