Keep browser scroll position constant when regenerating html.