adding xhr.onprogress event