Fixed jshint complaints