on = document.getElementById('start-button');

            // Clear previous content
            button.innerHTML = '';

            if (peerConnection && (peerConnection.connectionState === 'connecting' || peerConnection.connectionState === 'new')) {
                const spinner = document.createElement('div');
                spinner.className = 'spinner';

                const text = document.createElement('span');
                text.textContent = 'Connecting...';

                button.appendChild(