Open XMLHTTPRequest before setting properties