main should be js file.
move templates to scripts/templates/templates.js