Mandelbrot in html 5 using jasmine and node for testing