Add .jshintrc + fix jshint errors

Fixes #33