Add initial version of template.js