add stash protect and pre-commit hook for js code quality tools