Add a xhr2 method