function EndTrial() {

      // kill any remaining setTimeout handlers
      jsPsych.pluginAPI.clearAllTimeouts();

      // gather the data to store for the trial
      var trial_data = {
        'reported_goodness': reported_goodness
      };

      // move on to the next trial
      jsPsych.finishTrial(trial_data);

    }
// function to end trial when it is time
function to end trial when it is time
function to end trial when it is time
function EndTrial() {
      jsPsych.pluginAPI.clearAllTimeouts();
      var trial_data = {
        'reported_goodness': reported_goodness
      };
      jsPsych.finishTrial(trial_data);
    }
function EndTrial ( ) { jsPsych . pluginAPI . clearAllTimeouts ( ) ; var trial_data = { 'reported_goodness' : reported_goodness } ; jsPsych . finishTrial ( trial_data ) ; }
function to end trial when it is time
function to end trial when it is time
// kill any remaining setTimeout handlers // gather the data to store for the trial // move on to the next trial