That's the way, how java script code should be extracted.
Extraction of show/hide should be finished.
Tests are the outstanding next step.