Update eventManager.js