change ajax request for handling differents domains