added events.js