Setting xhr attributes after xhr.open() method is called