created jspsych-utils.js

added function to generate flat data array from hierarchical
jspsych.data object.