from server side template to js mustache template