Fixed typo with events.js