chat.js syntax