fixed setAsyncMode
check xhr.status properly