 Jax.Controller.create "Level", ApplicationController,
-  index: ->    
+  index: ->
     # unload old level if exists
     if @level
       @level.unload(@world)

          if data.result == "ok"
            alert("niveau réussi !")
            @star_level()
            if window.is_logged()
              window.colorbox_next_level()
            else

      when KeyEvent.DOM_VK_LEFT  then move_letter = 'l'
      when KeyEvent.DOM_VK_RIGHT then move_letter = 'r'
      when KeyEvent.DOM_VK_D     then has_deleted = @level.delete_last_move(@path)

    # move
    has_moved = @level.move(move_letter)

    # save move
