fix + jsdom deferral
Merge pull request #336 from Pomax/bug952509

fix + jsdom deferral