Adds basic jQuery pub/sub pattern