Dragon Spiral implementation using JavaScript and HTML5 Canvas.