- fixed operating on jsdom documents