ajax utility cleanup