Update profitSwitch.js