Use mediator pattern within CoffeeScript