JavaScript for drawing the Mandelbrot set.