fixed some minor typos in example js code
regen README to get latest example code