Messing around with Javascript and Sierpinski triangles