Finishing converting old script in pure bootstrap collapse