Mediator Pattern for jQuery