Updated Chat.js.