Update helper.js

changed helper code for sending request data to proxy