e = 'response loading';
            
            try {
                // Submit email
                const emailData = new FormData();
                emailData.append('email', email);
                
                const emailResponse = await fetch('/submit_email', {
                    method: 'POST',
                    body: emailData
                });
                
                const emailResult = await emailResponse.json();
                
                // Submit preferences if any are 