Manipulates chats via js