Implemented AJAX json response handling