updating collapse js