Update main from index.js to event.js