Basic implementation using just jsdom (no html5 requirement)