As @codeomnitrix said you can't do cross domain ajax requests.
If you wish to use JavaScript to write your web scraper, consider using Node.js Its JS, but meant for building backend services. It works well for network driven apps, supports higher concurrency.
You can also get many packages at npm like async, underscore and cheerio which can help you build a pretty decent webscraper.