Create Object at Runtime
<p>I have a simple factory below that I would like to simplify and not be required to modify each time I add a new object that I would like to return.  In Javascript, how would I be able to create an object at runtime? Thanks</p>

<pre><code>switch (leagueId) {
  case 'NCAAF' :
      return new NCAAFScoreGrid();
  case 'MLB' :
      return new MLBScoreGrid();
  ... 
}
</code></pre>
