var xhr = new XMLHttpRequest();
.onreadystatechange = function() {
xhrif (this.readyState === 4 && this.status === 200) {
var result = JSON.parse(xhr.responseText);
console.log(result);
}
}.open('GET', '/james.json', true);
xhr.send(); xhr