ey), key);
                } else url = url.replace(temp, '');
            }
            request.url = url;
        }

        // handle culture lang
        var culture = getQueryVariable(cultureKey);
        if (culture && culture.length > 0) {
            request.url = updateQueryVariable(url, cultureKey, culture);
        }

        return request;
    }

    // send ajax request
    function sendRequest(params) {
        let xhr = new XMLHttpRequest();
        xhr.onreadystatechange = function () {
   