Update events.js

Modify