Re-implemented showing/hiding all in JavaScript