Adding templates.js to index.html