Made the outer loop of the drawing function a setTimeout loop so events can be processed on the queue while the fractal loads