mod html_gen to handle both Venn diagrams