   if (xhr.readyState === 4) {
                        var companyIconId = "";
                        if (xhr.status !== 200) {
                            alert('there was an error while uploading the company logo');
                            document.getElementById("spinner-0").style.display = "none";
                            return;
                        }
                        var res = JSON.parse(xhr.response);
                        companyIconId = res.id;
                        httpReq(
 