Fix jshint errors
Merge pull request #888 from xdissent/jshint

Fix jshint errors