hiding an element with javascript, in a modular way
I'm trying to create some functionality akin to .hide in jquery, but just using plain javascript, here's what I have so far:

    (function() {

    addLoadEventHandler(function() {
	
			
			getByName = (function(name){ 
				return document.getElementsByTagName(name)
			})
			
			hide = (function(){
				return style.display = 'none'
				
			})

		});

    return {

		getByName: getByName,
		hide: hide
	};
    }());

so terribly incomplete, but am I heading along the right track here. Sorry, bit of a noob.
hiding an element with javascript, in a modular way
===

I'm trying to create some functionality akin to .hide in jquery, but just using plain javascript, here's what I have so far:

    (function() {

    addLoadEventHandler(function() {
	
			
			getByName = (function(name){ 
				return document.getElementsByTagName(name)
			})
			
			hide = (function(){
				return style.display = 'none'
				
			})

		});

    return {

		getByName: getByName,
		hide: hide
	};
    }());

so terribly incomplete, but am I heading along the right track here. Sorry, bit of a noob.