edit tool-adding ajax example to print out api response