chat.js uses relative url