(function() {
  this.ColorUtil = (function() {
    function ColorUtil() {}

    ColorUtil.changeLuminance = function(hex, lum) {
      
		// validate hex string
		hex = String(hex).replace(/[^0-9a-f]/gi, '');
		if (hex.length < 6) {
			hex = hex[0]+hex[0]+hex[1]+hex[1]+hex[2]+hex[2];
		}
		lum = lum || 0;

		// convert to decimal and change luminosity
		var rgb = "#", c, i;
		for (i = 0; i < 3; i++) {
			c = parseInt(hex.substr(i*2,2), 16);
			c = Math.round(Math.min(Math.max(0, c + (c * lum)), 255)).toString(16);
			rgb += ("00"+c).substr(c.length);
		}
		;
      return rgb;
    };

    return ColorUtil;

  })();

  this.Util = (function(){
  	function Util() {}

  	Util.getURLHost = function(url) {
  		var parser = document.createElement("a");
  		parser.href = url;
  		return parser.protocol+"//"+parser.hostname;
  	}

  	Util.getFaviconURL = function(url) {
  		return Util.getURLHost(url)+"/favicon.ico";
  	}

  	return Util
  })();

}).call(this);

(function() {
  this.ColorUtil = (function() {
    function ColorUtil() {}

    ColorUtil.changeLuminance = function(hex, lum) {
      
		// validate hex string
		hex = String(hex).replace(/[^0-9a-f]/gi, '');
		if (hex.length < 6) {
			hex = hex[0]+hex[0]+hex[1]+hex[1]+hex[2]+hex[2];
		}
		lum = lum || 0;

		// convert to decimal and change luminosity
		var rgb = "#", c, i;
		for (i = 0; i < 3; i++) {
			c = parseInt(hex.substr(i*2,2), 16);
			c = Math.round(Math.min(Math.max(0, c + (c * lum)), 255)).toString(16);
			rgb += ("00"+c).substr(c.length);
		}
		;
      return rgb;
    };

    return ColorUtil;

  })();

}).call(this);

--- 
+++ 
@@ -26,4 +26,20 @@
 
   })();
 
+  this.Util = (function(){
+  	function Util() {}
+
+  	Util.getURLHost = function(url) {
+  		var parser = document.createElement("a");
+  		parser.href = url;
+  		return parser.protocol+"//"+parser.hostname;
+  	}
+
+  	Util.getFaviconURL = function(url) {
+  		return Util.getURLHost(url)+"/favicon.ico";
+  	}
+
+  	return Util
+  })();
+
 }).call(this);
Add util function to retrieve favicons
