anchor.diff:  						url: '../api/v1/resource/organizations/'+encodeURIComponent(selectedObj.organizationId)+'/references',
   						method: 'GET',
   						success: function (response, opts) {
  -							theData = response.responseText;
  -							if(theData.length!==0){
  +							
  +							var theData=[];
  +							theData = JSON.parse(response.responseText);
  +							console.log("response:",theData.length);
  +							if(0 < theData.length){
   								Ext.toast('That organization has references and cannot be deleted.');
   								return;
   							}
  
positive.code: 					listeners: {
  						itemdblclick: function(grid, record, item, index, e, opts){
  							console.log("double click");
  						},
  						selectionchange: function(grid, record, index, opts){
  							console.log("change selection");
  
negative.code: 				};
  				
  				var noOrg = function(){
                      Ext.getCmp('noOrgWin').show();
  				};
  				
  				var runExtraction = function(){
  