Fix use of XHR status in DSL code

In the node based XMLHTTPRequest object, xhr.status is a string not an int; Fixing code to account for both browser and node.
Is it still best practise to add 10 as the second arg for parseInt these days?