eventhooks.js change