Update connectivitySwitch.js