     
     searchboxElement = @pageSelectionDiv.find(".pagination-searchbox")
     @addSearchboxListener(searchboxElement)
+    @addHashListener(searchboxElement)
+
+
+  addHashListener : (searchboxElement) ->
+
+    if hash = window.location.hash.slice(1)
+      searchboxElement.val(hash).trigger("keyup")
+
+    window.onhashchange = ->
+      searchboxElement.val(window.location.hash.slice(1)).trigger("keyup")
 
 
   extractTemplate : ->

      dataType : "json"
      type : "get"

    $.ajax(ajaxOptions).then(

      (responseData) =>
        

    currentQuery = null

    searchboxElement.keyup (event) =>
      @dataRetrievalPromise.done( =>
        newQuery = $(event.currentTarget).val().toLowerCase()

        if newQuery == currentQuery
          return

        currentQuery = currentQuery
        lastQuery = currentQuery
        currentQuery = newQuery

        if currentQuery.length > 0
          @elementsToShow = []

          i = 0
          for task in @allElements
            if @JSONcontains task, currentQuery
              @elementsToShow.push task
        else
          @elementsToShow = @allElements
       
        @updatePageCount()
        @displayJSON(@getElementsForPage(0))
      )
      

  displayJSON : (jsonArray) ->
