 = document.getElementById('output');
                chatHistory = document.getElementById('chat-history');
                video = document.getElementById('video')
                function openWs() {
                    if (ws) {
                        return false;
                    }
                    ws = new WebSocket('{{.}}');
                    ws.onopen = function (evt) {
                        print('OPEN');
                    }
                    ws.onclose = function (evt) {
           