adding back global.templates to app.js