Adding dynamic data into client side template rendering