Corrected some jshint errors