svg.innerHTML += '<polyline xmlns="http://www.w3.org/2000/svg" points="'+points[j]+'" fill="none" stroke="red" stroke-width="2" />'