ajax intermediate assignment