Revised ajax request

Added the possibility to retry successfull ajax requests with faulty
response data.