Update to process flow

Added a javascript 'class' that handles the data manipulation and
storage