Proxy.js changes to accomodate new node.js version