added precommit-hook config and cleared all jshint errors