Refactor Open/Collapse with no jQuery