fixed jshint warnings.