Use the timeout feature of XmlHTTPRequest to concel network call