Fix JS for unsubscriptions