Created main.js
Solved updateEvent Issue