Simplify xhr