Dragon curve fractal JS