if (document.getElementsByTagName) {

var strip_nodes = {

	// reference to unordered list
	theBody : document.getElementsByTagName('body')[0],

	// number of element nodes found
	nodesRemoved : 0,

	init : function() {

		// loop through the child nodes in the html
		// in this case we are removing nodes, so we DO NOT set a fixed
		// end point for the loop
		for (var i=0; i<this.theBody.childNodes.length; i++) {

			if (this.theBody.childNodes[i].nodeType === 3 && !this.theBody.childNodes[i].nodeValue.match(/\S/)) {

					this.theBody.removeChild(this.theBody.childNodes[i]);

					this.nodesRemoved++;

					// the child nodes length just shrank by one
					// so we should not skip whatever just moved into the
					// current numerical index / position
					i -= 1;

			}

		}

	},
	
	
};

strip_nodes.init();

}

