Very small XHR wrapper for modern browsers