updated examples/post.js to check for request data