updated demo.html to separate dot-generating routine and allow for generating non-html labels / no root