Update sample.js

fix option key for POST body
Merge pull request #11 from danieltdt/patch-1

Update sample.js, thanks!