Create event-delegate.js