Remove debugging output
[js] scroll to the anchor

the collapse() function reduces the height of many rows, and thus prevents
the browser from scrolling to the desired element manually