Fixed jshint issues