updated html client example code