Update switch.js