Convert collapsible to JavaScript.

**DO NOT MERGE**