title: How do I make JavaScript Object using a variable String to define the class name?
body: <p>Here's what I'm trying to do -- this is pseudo code and doesn't work. Does anyone know how to accomplish this for real:</p>
  
  <pre><code>// Define the class
  MyClass = Class.extend({});
  
  // Store the class name in a string
  var classNameString = 'MyClass';
  
  // Instantiate the object using the class name string
  var myObject = new classNameString();
  </code></pre>