Update event.js

Partial test coverage of modifying the default events, following #640