write_html function

Generic function for writing interactive visualization to file