Clean events.js