client template.js