       $(this).removeClass "initial"
 
   $("#quit_btn").click ->
-    $.ajax
-      url: "/ajax/player/quit"
+    request
+      url: "/player/quit"
       data:
         akey: tupelo.player.akey
       success: quitOk


    tupelo.player = new T.Player(name)
    T.log tupelo
    $.ajax
      url: "/ajax/player/register"
      data:
        player: JSON.stringify(tupelo.player)
      success: registerOk
      error: ajaxErr

  # sign in by pressing enter
  $("#register_name").keyup (event) ->


    $("#event_log").html ""
    setState "inGame"
    request
      url: "/game/get_info"
      success: gameInfoOk
      data:
        game_id: tupelo.game_id

