not working switcher JS