 function getData(url) {
        return new Promise(async function (resolve, reject) {
            function inner_get(url) {
                let xhttp = new XMLHttpRequest();
                xhttp.open("GET", url, true);
                xhttp.send();
                return xhttp;
            }

            let data = inner_get(url);
            data.onerror = function (e) {
                resolve("error");
            }

            async function isResponseReady() {
                return new Promise(func