Fix for #23

- fixes #23:jsdom tests should now work as expected