get XMLHttpRequest at call time (aka sinon support)

allows XMLHttpRequest to become a new reference, such as a mock sinon object, and for that new reference to be used by this module