Yes, this should be possible but if your widgets are bounded to variables they will not be able to resolve themselves. If your GUI uses target side variables, then in the js program you should replace the load program with load symbols javascript commands. The syntax for that is Symbol->Load(). See DSS API docs under '<INSTALL DIR>\ccsv5\ccs_base\scripting\docs\GettingStarted.htm'
Raj