code: function firePopState() {
      var o = document.createEvent ? document.createEvent('Event') : document.createEventObject();
      if (o.initEvent) {
        o.initEvent('popstate', false, false);
      } else {
        o.type = 'popstate';
      }
      o.state = historyObject.state;
      // send a newly created events to be processed
      dispatchEvent(o);
    }
docs: dispatch current state event