refactored the proxy script usage so only one master.js exists