events.js change