Updated event.js