It's me again :)
I've spent some time getting more into NS code and tried to add some
functionality by the way :) That's the outcome:
The code makes the scroll offsets to be remembered in the history, so that
you find yourself in the same place when you come back to a site.