Add timeout attribute to XHR check

Add an attribute to the xhr check to configure the timeout property of browsers where it is available.