should check xhr.supportsXHR instead of xhr.supportsActiveX