add template.js file