split template and javascript into separate files

Templates are stored in main.html
template_logic.js contains javascript that edits JSON data for template
Continued work on mla templates