title: create new javascript object from variable
body: <p>i would like to create a new object in javascript (using simple inheritance) such that the class of the object is defined from a variable:</p>
  
  <pre><code>var class = 'Person';
  var inst = new class
  </code></pre>
  
  <p>any ideas?</p>