added templates.js