Fractal Tree Generating HTML and JavaScript