task 10.4.3 completed.
AJAx code refactored