event.js update