Fix the collapse accordion and related JS.