I am trying to store the names and heights of several div tags in an object for later use. I am attempting to do this by finding the divs with class "hidden," then registering their names and heights in an .each loop. However, when I attempt to my code, I will either get the same div tag's name and value repeated several times, or I will just get the initial values of the object.

```
    var heightMap = {name:'x',value:'y'};
    function setHeightMap() {
        $( ".hidden" ).each(function() {
            $setName = $( this ).attr('id');
            $setValue = $( this ).height();
        });
        $heightMap.push({'name':$setName, 'value':$setValue});
    };
    console.log(heightMap);

```