Sierpiński curve animation JavaScript