fixed some minor typos with js examples
Merge pull request #27 from christopherscott/typosfix

fixed some minor typos with js examples