minor fixes
add pre-commit hook for jshint, installed automatically on npm install