updates to event.js