Update pegasus.js

XHR should be passed to CB, not to JSON which ignores it.
Merge pull request #3 from snadrus/patch-1

Update pegasus.js