Fix emit() for for and if statements, other stuff
Update test programs
Alllllllllmost
Update .js template, remove footer, mark up HTML