old_contents: var socket = io.connect('http://localhost');
  		
  socket.on('connect', function(){
    self.socket.emit('pgsubscribe');								
  });
  
  socket.on('pgevent', function(msg){
  	updateFeatures(msg);
  });
  
  
new_contents: var socket = io.connect(window.location.hostname);
  		
  socket.on('connect', function(){
    self.socket.emit('pgsubscribe');								
  });
  
  socket.on('pgevent', function(msg){
  	updateFeatures(msg);
  });
  
  
subject: Fix connection origin