Add timeout attribute to XHR check

Add an attribute to the xhr-check to configure the timeout property of browsers where it is available, since normal browser timeouts are longer than the average user is willing to wait.