Make joining and leaving tournaments use AJAX