Lint police

Fix lint errors.
Add jslint pre-commit hook.