Mandelbrot fractal generator using javascript and html5 canvas