Please change all function definitions to `var gitHookSetup = function() {`.