Main.js tweak, proxy fix