fix docs for events.js