alot of the Silverlight 1.0 samples using javascript include a library called 'Silverlight.js' and then another file that has a function called 'createSilverlight' that you have to hard code your Silverlight class name so that it is created and the xaml is pulled in dynamically sort of... Anyway Javascript has this cool little function called 'eval' so I redid this function so that you only need to have one for all your Silverlight apps with creating a bunch of version of this. So it made since to add it to the library so that all I need is my application code and this library and Im good.
So the biggest change is really the first light of the function. So instead of
var scene = new HelloWorldSilverlightClass();
you just put in this line:
var scene = eval( 'new ' + Id + '();');
and now it works for everyone for all the Silverlight classes.