Jshint errors fixed