HTML tree generator