realtime chat with tmlib.js