Creating collapsible lists with JS for contractor page