ajax code update