Handle errors within callback/changed ajax call to use domain name