appropriate JS for toggle