Fix jshint errors when running grunt

Resolves #458.