Changed templates.js to template.js
Fixed syntax