Testing javascript collapse