chat.js bug