chat.js: clean up comments and events
chat.js: clean up comments and events

spectralsun/flask-otr-webrtc-demo,foxichu/flask-otr-webrtc-demo,maniksingh92/flask-otr-webrtc-demo,foxichu/flask-otr-webrtc-demo,maniksingh92/flask-otr-webrtc-demo,spectralsun/flask-otr-webrtc-demo,aldefalco/flask-otr-webrtc-demo,foxichu/flask-otr-webrtc-demo,spectralsun/flask-otr-webrtc-demo,maniksingh92/flask-otr-webrtc-demo,aldefalco/flask-otr-webrtc-demo,aldefalco/flask-otr-webrtc-demo