Update typechat-client.js