var path = window.location.pathname;
if (path.charAt(path.length)!="/"){
	path = path.split("/");
	path.pop();
	path=path.join("/");	
}
dojo.registerModulePath("app",path);

dojo.provide("modelApp");
modelApp.names = [{
        "Serial" : "360324",
        "First"  : "John",
        "Last"   : "Doe",
        "Email"  : "jdoe@us.ibm.com",
        "ShipTo" : {
            "Street" : "123 Valley Rd",
            "City"   : "Katonah",
            "State"  : "NY",
            "Zip"    : "10536"
        },
        "BillTo" : {
            "Street" : "17 Skyline Dr",
            "City"   : "Hawthorne",
            "State"  : "NY",
            "Zip"    : "10532"
        }
    }];
modelApp.repeatData = [ 
                   {
                       "First"   : "Chad",
                       "Last"    : "Chapman",
                       "Location": "CA",
                       "Office"  : "1278",
                       "Email"   : "c.c@test.com",
                       "Tel"     : "408-764-8237",
                       "Fax"     : "408-764-8228"
                   },
                   {
                       "First"   : "Irene",
                       "Last"    : "Ira",
                       "Location": "NJ",
                       "Office"  : "F09",
                       "Email"   : "i.i@test.com",
                       "Tel"     : "514-764-6532",
                       "Fax"     : "514-764-7300"
                   },
                   {
                       "First"   : "John",
                       "Last"    : "Jacklin",
                       "Location": "CA",
                       "Office"  : "6701",
                       "Email"   : "j.j@test.com",
                       "Tel"     : "408-764-1234",
                       "Fax"     : "408-764-4321"
                   }
                   ];

require(["dojo","dojox/app/main", "dojox/json/ref"],function(dojo,Application,config,ref){
	//app = Application(dojox.json.ref.resolveJson(config), dojo.body());
	//app = Application(dojox.json.ref.fromJson(config));
});

require(["dojox/app/main", "dojo/text!app/config.json"],function(Application,config){
    //app = Application(dojox.json.ref.resolveJson(config), dojo.body());
    app = Application(dojox.json.ref.fromJson(config));
});

@@ -171,34 +171,394 @@
 );%0A%0A
-dojo.provide(%22modelApp%22);%0A
+require(%5B%22dojo%22,%22dojox/app/main%22, %22dojox/json/ref%22%5D,function(dojo,Application,config,ref)%7B%0A%09//app = Application(dojox.json.ref.resolveJson(config), dojo.body());%0A%09//app = Application(dojox.json.ref.fromJson(config));%0A%7D);%0A%0Arequire(%5B%22dojox/app/main%22, %22dojo/text!app/config.json%22%5D,function(Application,config)%7B%0A    //app = Application(dojox.json.ref.resolveJson(config), dojo.body());%0A    
 mode
@@ -573,16 +573,20 @@
 es = %5B%7B%0A
+    
         
@@ -606,32 +606,36 @@
 60324%22,%0A        
+ 
+   
 %22First%22  : %22John
@@ -629,32 +629,36 @@
 rst%22  : %22John%22,%0A
+    
         %22Last%22  
@@ -667,32 +667,36 @@
  %22Doe%22,%0A        
+    
 %22Email%22  : %22jdoe
@@ -717,16 +717,20 @@
         
+  
+  
 %22ShipTo%22
@@ -726,32 +726,36 @@
    %22ShipTo%22 : %7B%0A
+    
             %22Str
@@ -782,32 +782,36 @@
 d%22,%0A            
+    
 %22City%22   : %22Kato
@@ -816,16 +816,20 @@
 tonah%22,%0A
+    
         
@@ -853,32 +853,36 @@
 Y%22,%0A            
+    
 %22Zip%22    : %221053
@@ -884,35 +884,43 @@
 %2210536%22%0A        
+   
+ 
 %7D,%0A
+    
         %22BillTo%22
@@ -928,32 +928,36 @@
 : %7B%0A            
+ 
+   
 %22Street%22 : %2217 S
@@ -968,16 +968,20 @@
 ne Dr%22,%0A
+    
         
@@ -1012,32 +1012,36 @@
 e%22,%0A            
+    
 %22State%22  : %22NY%22,
@@ -1045,32 +1045,36 @@
 Y%22,%0A            
+   
+ 
 %22Zip%22    : %221053
@@ -1088,18 +1088,30 @@
     
-%7D%0A
+    %7D%0A  
     
+  
 %7D%5D;%0A
+    
 mode
@@ -2257,390 +2257,8 @@
 %5D;%0A%0A
-require(%5B%22dojo%22,%22dojox/app/main%22, %22dojox/json/ref%22%5D,function(dojo,Application,config,ref)%7B%0A%09//app = Application(dojox.json.ref.resolveJson(config), dojo.body());%0A%09//app = Application(dojox.json.ref.fromJson(config));%0A%7D);%0A%0Arequire(%5B%22dojox/app/main%22, %22dojo/text!app/config.json%22%5D,function(Application,config)%7B%0A    //app = Application(dojox.json.ref.resolveJson(config), dojo.body());%0A
     

fix the problem of dojo.provide and move the variable declaration into the require body.