Popstate condition fix and better `title` handling
- fixing condition in popstate event handler; since
e
is jQuery Event Object, there is nostate
property defined, we need to usee.originalEvent.state
instead - if
title
element hasdata-ajax-update
, then use this title when pushing new state and setdocument.title
to this value; see vojtech-dobes/nette.ajax.js#151