title: JavaScript configuration manager class
body: <p>I want to be able to instantiate a JavaScript object as follows:</p>
  
  <pre><code>var c = new MyConfig({
      'server': 'servername',
      'kfc': true,
      'code': true,
      'test': true
  });
  </code></pre>
  
  <p>Something like that. I want the individual attributes to be available with something like:</p>
  
  <pre><code>c.getConfig('nfc'); which should return true / false etc.
  </code></pre>
  
  <p>I get confused on little stuff like should I use literal or constructor function.</p>
  
  <p>Can someone assist?</p>