Fix jshint errors
Add pre-commit hook to version control