    if(Math.random() < 0.2){
          txt[j] = '<span class="alink">' + txt[j] + '</span>';
          linkCreated = true;
        }
      }
      var html = '<div id="tabs-' + i +  '"><p>' + txt.join(' ') + '</p></div>';
      div.append(html);
    }
  }

  // turn the HTML into jQuery tabs!
  $('#area').tabs();
}

var bindClickEvents = function(){
  var elements = document.getElementsByClassName('alink');
  var correctIndex = core.randi(0, elements.length);
  var correctText = elements[correctIndex].inner