eButton = document.getElementById('saveDeviceBtn');
            const form = document.querySelector('form');
            const quantityInput = document.querySelector('input[name="quantity"]');
            const createButtonText = document.getElementById('createButtonText');
            
            // Update button text based on quantity
            if (quantityInput && createButtonText) {
                function updateButtonText() {
                    const quantity = parseInt(quantityInput.value) || 1;
