old_contents: var ClickCall = ClickCall || {};
  
  
  ClickCall = function(number){
  	this.number = number;
  	// format the number to include +1
  	this.digit = "+1" + this.number.innerHTML
  	this.numbers = document.getElementsByClassName('biz-phone');
  	this.turnToLink();
  	this.afterClick();
  }
  
  ClickCall.prototype = {
  
  	turnToLink: function(){
  		// wraps the number in an a tag
  		this.number.innerHTML = ""
  		var newNode = document.createElement('a')
  		var digitContent = document.createTextNode(this.digit)
  		// gives the number a class
  		newNode.setAttribute("class", "ClickCall-Call")
  		newNode.appendChild(digitContent)
  		this.number.appendChild(newNode);
  	},
  
  	afterClick: function(){
  		
  		chrome.runtime.sendMessage({
  			phone: this.digit
  		})
  	}
  
  }
  
  function main(){
  	var numbers = document.getElementsByClassName('biz-phone');
  	for (i=0;i<numbers.length;i++){
  		var digits = numbers[i]
  		numbers[i].clickCall = new ClickCall(digits);
  	}
  }
  
  window.addEventListener('load', function(){
  	main();
  });
  
  
  
  
  
  
new_contents: var ClickCall = ClickCall || {};
  
  
  ClickCall = function(number){
  	this.number = number;
  	// format the number to include +1
  	this.digit = "+1" + this.number.innerHTML
  	this.numbers = document.getElementsByClassName('biz-phone');
  	this.turnToLink();
  	this.assignClickEvent(this.numbers);
  	this.afterClick();
  }
  
  ClickCall.prototype = {
  
  	turnToLink: function(){
  		// wraps the number in an a tag
  		this.number.innerHTML = ""
  		var newNode = document.createElement('a')
  		var digitContent = document.createTextNode(this.digit)
  		// gives the number a class
  		newNode.setAttribute("class", "ClickCall-Call")
  		newNode.appendChild(digitContent)
  		this.number.appendChild(newNode);
  	},
  
  	assignClickEvent: function(numbers){
  		for (i=0;i<numbers.length;i++){
  			var digits = numbers[i]
  			digits.addEventListener('click', function(event){
  				console.log(event)
  			})
  		}
  	}
  
  	afterClick: function(){
  
  		chrome.runtime.sendMessage({
  			phone: this.digit
  		})
  	}
  
  }
  
  function main(){
  	var numbers = document.getElementsByClassName('biz-phone');
  	for (i=0;i<numbers.length;i++){
  		var digits = numbers[i]
  		numbers[i].clickCall = new ClickCall(digits);
  	}
  }
  
  window.addEventListener('load', function(){
  	main();
  });
  
  
  
  
  
  
subject: add event listeners to numbers