changed js samples to promise impl
Merge pull request #13 from appacitive/jsnomenclature

changed js samples to promise impl