Update events.js