JS-driven scroll for preview link, reworded