function EndTrial() {

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

      // gather the data to store for the trial
      var trial_data = {
        'slider_type': trial.slider_type,
        'raw_loc': response.raw_loc,
        'loc': response.loc
      };

      // 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 = {
        'slider_type': trial.slider_type,
        'raw_loc': response.raw_loc,
        'loc': response.loc
      };
      jsPsych.finishTrial(trial_data);
    }
function EndTrial ( ) { jsPsych . pluginAPI . clearAllTimeouts ( ) ; var trial_data = { 'slider_type' : trial . slider_type , 'raw_loc' : response . raw_loc , 'loc' : response . loc } ; 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