jsdom error handling on xhr and params for concurrency.