}

  // click-button
  var button_state = -1.0;
  var correct_text = core.sample(elements).html();  
  console.log([correct_text, elements.length]);
  for(var i = 0, len = elements.length; i < len; i++) {
    var e = elements[i];    
    if (e.html() === correct_text) {
      if (link_state == 1.0) {
        e.on('click', function(){ console.log([e.html(), correct_text]); button_state = 1.0; console.log(['click-button', button_state, link_state]); })
      } else {
        e.on('click', function(){ console.