       var ssid = document.getElementById('ssid').value;
        var password = document.getElementById('password').value;

        
        fetch('/update_settings', {
            method: 'POST',
            headers: {
                'Content-Type': 'application/json'
            },
            body: JSON.stringify({ ssid: ssid, password: password })
        })
        .then(response => {
            if (!response.ok) {
                throw new Error('Failed to Set AP Settings');
            }
          