t_text]);
    if(e.html() === correct_text) {
      e.on('click', function(){ console.log([e.html(), correct_text]); linkState = 1.0; })
    } else {
      e.on('click', function(){ console.log([e.html(), correct_text]); linkState = -1.0; })
    }
  }  

  // main: click-dialog 
  var dialogDiv = $('#dialog'); 
  if (dialogDiv.length == 0)  div.append('div').attr('id', 'dialog');
  var dialogDiv = $('#dialog');

  createDialog(dialogDiv);

  // $('#query').html('Close the dialog box by clicking the "x".');
