jquery for game and ajax