update Javascript cross domain support.
Merge pull request #32 from leancloud/rest_api_wujun

update JavaScript cross domain support.