 document.getElementById("box");
      var boxpl = document.getElementById("boxWithPathlength");

      document.getElementById("tl1").firstChild.data = box.getTotalLength();
      document.getElementById("tl2").firstChild.data = boxpl.getTotalLength();

      var pt = box.getPointAtLength(0);
      document.getElementById("tp1").firstChild.data = "(" + pt.x + ", " + pt.y + ")";
      var circle = document.createElementNS("http://www.w3.org/2000/svg", "circle");
      circle.setAttribute("cx", pt.x);
      