Fix chat.js and user-presence.js to work with rex Tundra.