l);
            urlField.classList.add('copied');
            navigator.clipboard.writeText(urlField.value);
            setTimeout(() => urlField.classList.remove('copied'), 1000);
        }

        function prettyPrint(devices, elementId) {
            let output = "<div class='device-list'>";
            devices.forEach(device => {
                output += `
                    <div class='device' onclick='addDevice(this)' data-device-type='${device.kind}'>
                        <span clas