deleted jsdom, refactoring