e.preventDefault();

    const formData = new FormData(e.target);
    const data = Array.from(formData.entries()).reduce((memo, pair) => ({
        ...memo,
        [pair[0]]: pair[1],
    }), {});
    var json;
    json = JSON.stringify(data);

    // Set up our request
    var XHR = new XMLHttpRequest();

    // Define what happens on after data submission
    XHR.onreadystatechange = function (event) {
        if (XHR.readyState == 4) {
            if (XHR.status == 200) {
                document.getEle