add precommit hook and js code complexity analyser