code: function restore() {
      var data = store.get() || {};
      addEvent('load', function () {
        //console.log('scrolling to', data.y);
        window.scrollTo(data.x, data.y);
      });
    }
docs: Restore data from sessionStorage or the window.name when page is reloaded.