Correctly add xhr field to prototype