Move templates to app.js