events.js: jslint pass