Split templates.js out of app.js and include separately