fix switcher js