There is some old unused code in the html file, that should be removed:
// Allow manipulation of the SVG string, by loading it temporarily in the DOM
// See https://stackoverflow.com/questions/24107288/create-an-svg-dom-element-from-a-string
var svgDom = document.createElement("div");
svgDom.innerHTML = svgString;
There is some old unused code in the html file, that should be removed: