         existingNode.parentNode.removeChild(existingNode)
 
     refreshedNodes
-
-  refreshRefreshAlwaysNodes = (body) ->
-    allNodesToBeRefreshed = []
-    for node in document.querySelectorAll("[refresh-always]")
-      allNodesToBeRefreshed.push(node)
-
-    return refreshNodes(allNodesToBeRefreshed, body)
-
-  refreshNodesWithKeys = (keys, body) ->
-    allNodesToBeRefreshed = []
-    for key in keys
-      for node in document.querySelectorAll("[refresh=#{key}]")
-        allNodesToBeRefreshed.push(node)
-
-    return refreshNodes(allNodesToBeRefreshed, body)
 
   keepNodes = (body, allNodesToKeep) ->
     for existingNode in allNodesToKeep


    return

  deleteRefreshNeverNodes = (body) ->
    for node in body.querySelectorAll('[refresh-never]')
      node.parentNode.removeChild(node)

  changePage = (title, body, csrfToken, runScripts, partialReplace, onlyKeys = [], exceptKeys = []) ->
    document.title = title if title

    if onlyKeys.length
      nodesToRefresh = [].concat(getNodesWithRefreshAlways(), getNodesMatchingRefreshKeys(onlyKeys))
      return refreshNodes(nodesToRefresh, body)
    else
      refreshNodes(getNodesWithRefreshAlways(), body)
      persistStaticElements(body)
      if exceptKeys.length
        refreshAllExceptWithKeys(exceptKeys, body)
