Update js/switch.js