jsio.path.common = 'js';
jsio.path.browser = 'js';

jsio('from common.javascript import bind');
jsio('import net, logging');
jsio('import common.Item');
jsio('import common.itemFactory');
jsio('import browser.ItemView');
jsio('import browser.UbiquityClient');

gClient = new browser.UbiquityClient();			

gClient.connect('csp', "http://" + (document.domain || "127.0.0.1") + ":5555", function(itemSubscriptions){
	window.top.console.debug(itemSubscriptions);
	
	setTimeout(function(){
		var connecting = document.getElementById('connecting');
		connecting.parentNode.removeChild(connecting);

		var placeHolder = document.getElementById('placeholder');

		for (var i=0, itemId; itemId = itemSubscriptions[i]; i++) {
			var item = common.itemFactory.getItem(itemId);
			var itemView = new browser.ItemView(item);

			placeHolder.appendChild(itemView.getPropertyView('name'))
			placeHolder.appendChild(itemView.getPropertyView('age'))
			placeHolder.appendChild(document.createElement('br'));

			placeHolder.appendChild(itemView.getPropertyView('name'))
			placeHolder.appendChild(itemView.getPropertyView('age'))
			placeHolder.appendChild(document.createElement('br'));
			placeHolder.appendChild(document.createElement('br'));

			item.subscribe('PropertySet', bind(gClient, 'onItemPropertySet', item.getId()));
			gClient.subscribeToItem(item);
		}
		
	})
	
});


@@ -410,81 +410,8 @@
 s)%7B%0A
-%09window.top.console.debug(itemSubscriptions);%0A%09%0A%09setTimeout(function()%7B%0A%09
 %09var
@@ -463,17 +463,16 @@
 ting');%0A
-%09
 %09connect
@@ -512,17 +512,16 @@
 ting);%0A%0A
-%09
 %09var pla
@@ -572,17 +572,16 @@
 der');%0A%0A
-%09
 %09for (va
@@ -635,17 +635,16 @@
 ++) %7B%0A%09%09
-%09
 var item
@@ -684,17 +684,16 @@
 mId);%0A%09%09
-%09
 var item
@@ -724,25 +724,24 @@
 iew(item);%0A%0A
-%09
 %09%09placeHolde
@@ -782,33 +782,32 @@
 View('name'))%0A%09%09
-%09
 placeHolder.appe
@@ -841,33 +841,32 @@
 yView('age'))%0A%09%09
-%09
 placeHolder.appe
@@ -905,17 +905,16 @@
 br'));%0A%0A
-%09
 %09%09placeH
@@ -963,25 +963,24 @@
 ('name'))%0A%09%09
-%09
 placeHolder.
@@ -1026,17 +1026,16 @@
 ge'))%0A%09%09
-%09
 placeHol
@@ -1081,17 +1081,16 @@
 'br'));%0A
-%09
 %09%09placeH
@@ -1141,17 +1141,16 @@
 '));%0A%0A%09%09
-%09
 item.sub
@@ -1224,17 +1224,16 @@
 ()));%0A%09%09
-%09
 gClient.
@@ -1260,19 +1260,9 @@
 );%0A%09
-%09%7D%0A%09%09%0A%09%7D)%0A%09
+%7D
 %0A%7D);

Remove debug statement and setTimeout. Its annoying that exceptions get caught on the rtjp layer - would probably be better to hand off control somewhere in the stack with a setTimeout