Corrected jshint warnings