Revert "Merge pull request #83 from mnjul/bug_1102831_jsdom"

This reverts commit 680b44b119eceea3775f3f99217035f802025d7c, reversing
changes made to 580c7090140eca853def29bf96b1067fe6a6dddc.