FIX BUG  chat.js