xhr.onerror = function (e) { console.error("Unknown Error Occured. Server response not received."); };