created template.js