Add .jshintrc and get most rules passing

Fixes #31