Javascript and Canvas Fractal Tree