Fixed bug with template.js