Draws Sierpinski triangles using recursion on  HTML5 canvas