Fixed jshint warnings