Edit events.js