https://web.codingeasypeasy.com/implement-pubsub-pattern-in-javascript/
Implement Pub/Sub Pattern in JavaScript