update client.template.js