added pre-commit task; fixed jshint