So, my web page has a table structure with multiple rows. I want to create a function which gets all the values from a row and creates an object with the header as the keys