Mandelbrot fractal generator for HTML5 canvas