Update addEvent.js