ADDED XHR now supports progress events
CHANGED use JSDOM dispatch and raise