Update eventsHandler.js