Refactored jquery hides and reveals."