updated collapse js