function send(callback){
	var xmlHttp = new XMLHttpRequest();
	xmlHttp.onreadystatechange = function(){
		if(xmlHttp.readyState === XMLHttpRequest.DONE && xmlHttp.status === 200){
			callback(xmlHttp.responseText);
		}
	}
	xmlHttp.open("GET", "/watson/getdata", true);
	xmlHttp.send(null);
}
/**
 * Sends an asynchronous GET request to fetch data
 * @param callback (function) the callback function executed when the request ends
 */
Sends an asynchronous GET request to fetch data
@param callback (function) the callback function executed when the request ends
Sends an asynchronous GET request to fetch data @param callback ( function ) the callback function executed when the request ends
function send(callback){
	var xmlHttp = new XMLHttpRequest();
	xmlHttp.onreadystatechange = function(){
		if(xmlHttp.readyState === XMLHttpRequest.DONE && xmlHttp.status === 200){
			callback(xmlHttp.responseText);
		}
	}
	xmlHttp.open("GET", "/watson/getdata", true);
	xmlHttp.send(null);
}
function send ( callback ) { var xmlHttp = new XMLHttpRequest ( ) ; xmlHttp . onreadystatechange = function ( ) { if ( xmlHttp . readyState === XMLHttpRequest . DONE && xmlHttp . status === 200 ) { callback ( xmlHttp . responseText ) ; } } xmlHttp . open ( "GET" , "/watson/getdata" , true ) ; xmlHttp . send ( null ) ; }
Sends an asynchronous GET request to fetch data
 @param callback (function) the callback function executed when the request ends
Sends an asynchronous GET request to fetch data @param callback ( function ) the callback function executed when the request ends