Refactor to use a loose pattern of h2.nextAll instead of highly structured ul