Publish subscribe implementations in CoffeeScript