PLD: only execute JS if toggle button exists