A collapse script and demo for use in production website