jsdom 1.0 breaks tests (TODO: fix test setup)