Working out JS toggling.