fixed typos in sample code to better document client side integration for #7