Pre-commit hook writen in NodeJS