chore: add a pre-commit hook to lint JS code

Closes #7