title: nested hashtables in javascript
body: <p>I want to create the following data-structure with js:</p>
  
  <p><code>folders</code> dictionary: <code>folder-id(guid) : ==&gt; pages dictionary</code></p>
  
  <p><code>pages</code> array: <code>page-position(int) : ==&gt; files dictionary</code></p>
  
  <p><code>files</code> dictionary: <code>file-id(guid) : ==&gt; file object</code></p>
  
  <p>I want to know at each time how many items are in each collection.</p>
  
  <p>How would you suggest me to implemet this in JS ?</p>
  
  <p>Should I use array or object with dynamically added properties?</p>