Fix JS sample client.  Various config tweaks.