give a chat field id #chat to specify in js