write a Usage of onprogress in XHR.js