try using easyXDM for cross-domain calls