Changes json array response for successfull ajax calls