title: Create object from string
body: <p>Is it possible to create a new object using a string?
  For example, how can I convert the string "product" to <code>var p = new Product</code>?</p>
  
  <p>Thanks in advance.</p>
  
  <p><strong>EDIT</strong></p>
  
  <p>What I want to do is to have a menu with <code>&lt;a href="#home"&gt;&lt;/a&gt;&lt;a href="#products"&gt;products&lt;/a&gt;</code> and create the corresponding object from the href each time. </p>