update event.js