Merge pull request #148 from 3rd-Eden/better-node-xhr

Don't check against the window to detect node.js, wrap code in a try cat...