Added methods to joingroup and send groupchat message, also created methods to be called with ajax to send messages