Update main_chat.js