update JavaScript cross domain support.

update JavaScript cross domain support.