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

<pre><code>(function() {

addLoadEventHandler(function() {


        getByName = (function(name){ 
            return document.getElementsByTagName(name)
        })

        hide = (function(){
            return style.display = 'none'

        })

    });

return {

    getByName: getByName,
    hide: hide
};
}());
</code></pre>

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