Replace document by Vex.document (using jsdom while running on node.js)