adds .jshintrc and pre-commit hook