var socket = io.connect('http://localhost');
		
socket.on('connect', function(){
  self.socket.emit('pgsubscribe');								
});

socket.on('pgevent', function(msg){
	updateFeatures(msg);
});


@@ -21,26 +21,32 @@
 ect(
-'http://localhost'
+window.location.hostname
 );%0A%09

Fix connection origin