title: javascript: Add an object to an object
body: <p>I have the following object structure:</p>
  
  <pre><code>var obj = {
      "51523":{
          "firstname":"Tiki",
          "lastname":"Pur",
          "age":25
      },
      "98741":{
          "firstname":"Nagasti",
          "lastname":"Bagamba",
          "age":20
      }
  }
  </code></pre>
  
  <p>First - the reason behind this structure.
  I want to be able to access objects inside obj easily, like so:</p>
  
  <pre><code>obj["51523"].age = 25
  </code></pre>
  
  <p>is there a way of adding a new object to <strong>obj</strong>?</p>