Solved.
var xhr = new XMLHttpRequest();
xhr.open( 'GET', 'http://bukkit.org/.json', true );
xhr.onload = function () {
var unread = window.JSON.parse( xhr.responseText )._visitor_alertsUnread;
};
xhr.onerror = function () {
//process error
};
xhr.send();