Edit ajax code