But I am using a module called jsdom, which allows me to run a level 3 dom in-process.