Fixes Javascript ScrollTo bug affecting ajax page loads.