find and execute a JavaScript function that matches a string
<p>How can I find and execute a function inside of an object based on a string parameter?</p>

<p>see the following example:</p>

<pre><code>               var parameters = 'people';

                switch (parameters) {
                     case 'people':
                          people.initialize();
                          break;
                }
</code></pre>

<p>How can I remove the switch case statement in this scenario? Is it possible to call an object just by knowing the string name of the object?  </p>
