   title = doc.querySelector 'title'
   [ title?.textContent, doc.body ]
 
-createDocument = null
-
 browserCompatibleDocumentParser = ->
   createDocumentUsingParser = (html) ->
     (new DOMParser).parseFromString html, 'text/html'

initialized  = false
currentState = null
referer      = document.location.href
assets       = []
pageCache    = []


visit = (url) ->
  if browserSupportsPushState


rememberCurrentAssets = ->
  assets = extractAssets document

rememberInitialPage = ->
  unless initialized
    rememberCurrentUrl()
