add support of cross-domain ajax