Add reference to chat dom element.