Additional JS for ensuring directory filters are hidden onload