Switched from XMLHttpRequest to $.getJSON