Update eventDispatcher.js