Added dependency on XMLHttpReq package so this can be run in a node context.