fixed typo (collapsible), cleaned JS