update static HTML strings to generated d3 js code