fixed some jshint errors.