working on js for submit button to prepare data for google maps distance matrix