Fixing arguments order for XHR and IE