Update sendrequest.js