jshint errors fixes