server-proxy.js explanation