Mandelbrot and Julia set drawer in JavaScript