Found a much DRYer method to automatically scroll to the top every time a new route is opened.