proxy.js cleanup