Add a method to scroll to anchor