Update public/Js/chat.js