Add the JS logic of the team chat