Chat.js recieve messages and send messages changes