           .then (response) ->
             console.log 'reclaim response', response
             if response.ok
+              window.isAuthenticated = true
               update_footer ownerName, true
             else
               console.log 'reclaim failed: ', response

      fetch '/logout', myInit
      .then (response) ->
        if response.ok
          update_footer ownerName, false
        else
          console.log 'logout failed: ', response

            response.json().then (json) ->
              ownerName = json.ownerName
              window.isClaimed = true
              window.isAuthenticated = true
              update_footer ownerName, true
          else
            console.log 'login failed: ', response
