fix jshint errors on pull request #258