Added template.js