('class', 'secondary-action').html('Submit');
  }

  var boxesDiv = d3.select('#boxes');
  var checkboxData = createCheckboxes(boxesDiv);

  var qstr = checkboxData.clickNames.join(', ');
  if(qstr.length === 0) { qstr = 'nothing'; }

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