Making control flow of template easier to scan
Making control flow of template easier to scan

The control flow now scans from top->bottom, instead of defining
some variables at the top that are only used later. This _does_
mean that some hidden HTML elements are on the page, instead of
only what is visible, but this seems like a worthwhile tradeoff.

jstrait/jssynth,jstrait/jssynth