anchor.diff:  	      class:'legend',
   	      transform:function(d,i){
   	          //Just a calculation for x and y position
  -	          return 'translate('+1.5*width/2+',' + ((i*legendHeight)+5) + ')';
  +	          return 'translate('+(width-150)+',' + ((i*legendHeight)+60) + ')';
   	      }
   	  });
   	legend.append('rect')
  
positive.code: 	      class:'legend',
  	      transform:function(d,i){
  	          //Just a calculation for x and y position
  	          return 'translate('+1.5*width/2+',' + ((i*legendHeight)+5) + ')';
  	      }
  	  });
  	o_legend.append('rect')
  
negative.code: 		var messageTextArea = document.getElementById("messageTextArea");
  		messageTextArea.value += "start\n";
  		
  		var n = 9, // number of layers
  		m = 20, // number of samples per layer
  		stack1 = d3.layout.stack().offset("wiggle"), 
  		layers0 = stack1(d3.range(n).map(function() {return bumpLayer(m, 0);}));
  		layers1 = stack1(d3.range(n).map(function() {return bumpLayer(m, 1);}));
  
  		//original
  		var stack2 = d3.layout.stack().offset("wiggle"), 
  		o_layers0 = stack2(d3.range(n).map(function() {return bumpLayer(m, 0);}));
  		o_layers1 = stack2(d3.range(n).map(function() {return bumpLayer(m, 1);}));
  		
  		var x = d3.scale.linear().domain([ 0, m - 1 ]).range([ 0, width-200 ]);
  		var y = d3.scale.linear().domain(
  				[ 0, d3.max(layers0.concat(layers1), function(layer) {
  					return d3.max(layer, function(d) {
  