Converting collapsible module to JavaScript.