Update sendrequest.js

Cast to Boolean