Get rid of non-UI code in chat-ui.js