return a HTML element wrapped in a prototype type object javascript
<p>if I want to return a HTML dom element wrapped in a prototype defined object in order to have access at the methods added to the prototype how would I go about it.
A more concrete example of what I am trying to achieve is as follows:</p>

<pre><code>(function(window, document, undefined) {

    var i;
    var el;

    var Dome = function(selector, getAllMatches) {
        return Dome.core.init(selector, getAllMatches);
    };

    Dome.core = Dome.prototype = {
        constructor: Dome,
        el: "",
        init: function(selector, getAllMatches) {

            if (typeof arguments[0] !== "undefined") {
               this.el = getElement(selector);
                       if (this.el instanceof Dome){
                          return this.el;
                       }

                       else{
                          return this.el;
                       }
            }
        }

    .....

})(window, document);
</code></pre>

<p>what I am trying to achieve is return instead of this.el an instanceof Dome so I can have access to it's methods. I know this is done very well by jquery but I do not have so much experience with js an near to 0 with prototype.</p>
