introduce template.js