Fixed some jshint warnings.