Cross browser fixes:
- View source was broken in Safari because jquery.html() doesn't work on <svg>, which is an XML node.  The workaround is to put the <svg> element inside a <div> and call html() on that.  This entailed some layout changes to get it working in Firefox again.
- IE9 was borking the site by putting it in quirks mode.  This was fixed by adding <!DOCTYPE html>.