bug fixes for make_visualization code and doc

This fixes a bug in overwriting a .html file because a parenthesis in the html body was causing problems for the format. Now format is just used on the head part where it should be.
The doc had a dangling reference that has been removed.