ibute("width", "100");
rect.setAttribute("height", "100");
rect.setAttribute("fill", "url(#gradient)");
rect.setAttribute("onclick", "executeTest()");

var animate = createSVGElement("animate");
animate.setAttribute("id", "animation");
animate.setAttribute("attributeType", "XML");
animate.setAttribute("attributeName", "offset");
animate.setAttribute("begin", "0s");
animate.setAttribute("dur", "4s");
animate.setAttribute("from", "0");
animate.setAttribute("to", "1");
animate.setAttribute("fill", "freeze");
s