more investigation on events.js