Generate HTML and (some) Javascript.

Generating dependency and condition code will probably be easier if
references are resolved by the compiler first.
Why use arrays?