Add jshint options to package.json

Fixes #20
Update code to conform to jshint options