async function generateKey() {
let username = form.username
let password = form.password
let auth = window.btoa(username + ':' + password);
const key = await fetch('https://api.thegreenwebfoundation.org/api/v3/carbontxt_shared_secret', {
method: "POST",
headers: {
"Authorization": "Basic " + auth,
}
}).then(r => r.json())
return key
}