Added client-side example code