Javascript validation git pre-commit script