title: Changing 'name' property of jquery object
body: <p>I'm having an issue with a Javascript object. When I use <code>push</code> on the object, both parts should take on the value of a variable. For some reason though, only <code>valueOfName</code> seems to change based on the variable. I need <code>name</code> to change as well, at the moment it seems to take whatever value it is written as with or without quotes. Here is the relevent code.</p>
  
  <pre><code>var obj = {};
  obj.videoID = [];
  var terms = ['best','awesome','incredible','insane','great'];
  $.each(terms, function(cur, val){
      $.each(data.items, function(i, object) {
          $.each(object.id, function(property, value) {
              obj.videoID.push({val:value});
          });
      });
  });
  </code></pre>
  
  <p>Am I going about this wrong? Or is there something I've missed? Thanks in advance for your help guys.</p>