small changes in the group messaging js