Update sample.js

fix option key for POST body