I am trying to add a click event to a button that finds HTML elements by class and then adds each of them to an object with their name attribute as property name and the val