added simple template.js