Create and draw Sierpinski triangle with js