Beef up XHR code in sh.wget(), still failing 2 in PhantomJS due to not having web server