Drawing a fractal fern using HTML canvas to demonstrate recursion