ElementById("newsletter").innerHTML = "âœ… Your Email has been saved.";
      }
      else if (xhr.readyState === 4 && xhr.status === 400) { //some error
        var responsejson = JSON.parse(xhr.responseText);
        document.getElementById("newslettermessage").innerText = responsejson.response;
      } else if (xhr.readyState === 4 && xhr.status === 0) { //no response
        console.log("no response");
      } else if (xhr.readyState === 4) { //other error
        document.getElementById("newsletter