Create eventHooks.js