Fixed javascript system.
Pushed code to do footnotes as asides. Not sure I like the way it looks.
Experimental footnote feature (didn't work).