Set a timeout for XHR requests and make the value configurable