Added AJAX functionality for joining and creating groups