{
                        return false;
                    }
                    ws.close();
                    return false;
                };

                document.getElementById('record').onclick = function (evt) {
                    if (isRecording) {
                        recordStop();
                    } else {
                        recordStart();
                    }
                }

                document.getElementById('shareScreen').onclick = function () {
                    if