Update URL bar with the target fragment

This will look jerky at slow animation speeds. The offset calculated by
the script is different than what the browser window calculates when you
change its location.