added jQuery ajax join/leave (tested)