Add jshint, fix jshint warnings

Issue #30