adds domains. changes ajax request to cater for extra data