Dependency free publish/subscribe for JavaScript