Update lib/xrds.js

fixed issue #92
Merge pull request #93 from gillyb/master

Avoid global leak in xrds.js (fixes issue #92).