moved eventdispatcher.js to src