A simple, content-based publisher subscriber pattern implemented in JavaScript.