Changing `client.request()` by removing the (last) parameter `timeout` & setting `x-request-with` header, updating `xml.send()` by deleting `x-request-with` header if the value is `XMLHttpRequest`