anchor.diff:          newScript.AppendLine("""<div id="[ID]" style="width: [WIDTH]px; height: [HEIGHT]px;"><!-- Plotly chart will be drawn inside this DIV --></div>""") |> ignore
           newScript.AppendLine("<script type=\"text/javascript\">") |> ignore
           newScript.AppendLine(@"
  -            var renderPlotly = function() {
  +            var renderPlotly_[SCRIPTID] = function() {
               var fsharpPlotlyRequire = requirejs.config({context:'fsharp-plotly',paths:{plotly:'https://cdn.plot.ly/plotly-latest.min'}}) || require;
               fsharpPlotlyRequire(['plotly'], function(Plotly) {")  |> ignore
           newScript.AppendLine(@"
  
positive.code:                 var script = document.createElement("script");
                  script.setAttribute("src", "https://cdnjs.cloudflare.com/ajax/libs/require.js/2.3.6/require.min.js");
                  script.onload = function(){
                      renderPlotly();
                  };
                  document.getElementsByTagName("head")[0].appendChild(script);
              }
              else {
                  renderPlotly();
              }""") |> ignore
          newScript.AppendLine("</script>") |> ignore
          newScript.ToString()
  
negative.code:                 .Replace("[WIDTH]", string width)
                  .Replace("[HEIGHT]", string height)
                  .Replace("[ID]", guid)
                  .Replace("[SCRIPTID]", guid.Replace("-",""))
                  .Replace("[DATA]", tracesJson)
                  .Replace("[LAYOUT]", layoutJson)
                  .Replace("[CONFIG]", configJson)
  