#416 [Hugo/Remo] subsections are now being hidden, but there is a lot of duplication in js