Fetch a JSON file with XMLHttpRequest