varAjaxOutputData=JSON.parse(data);//Ajax output gets the whole list of unspent coin with addresses
//console.log('== Data OutPut ==');
//console.log(AjaxOutputData);
varunique_addresses=_.keys(_.countBy(AjaxOutputData,function(data){returndata.address;}));//This code using undscore.js takes only the address into an array which are unique in that list
// This function calls each unique address and calculates the total amount of coins in it.