quick fix to chat.js