Drawing the mandelbrot set in a canvas using javascript.