'</span>';
        linkCreated = true;
      }
    }
  }

  div.html(txt.join(' '));
  return txt;
}

// hook handlers to all generated links
var createClickEvents = function(){
  var elements = document.getElementsByClassName('alink');
  var correctIndex = core.randi(0, elements.length);
  var correctText = elements[correctIndex].innerHTML;
  for(var i = 0, len = elements.length; i < len; i++) {
    var e = elements[i];
    if(e.innerHTML === correctText) {
      d3.select(e).on('click', function(){ core.e