Tested in the Chrome browser. I've put the source here and at github. If you have a more graceful dragon curve algorithm, let me see it!
There is ~50% less code. I've removed a dependency (underscore.js, although I do love it), and added my example to Rosetta Code.