Javascript Event Manager for handlers, listeners and delegates