A mandelbrot set rendered according to a color gradient using HTML5 canvas element and JavaScript