Added comments in events.js file