fixed the typo in the events.js