Added support for setting XHR timeout