Add existing element to Object
<p>I have next object:</p>

<pre><code>    var myArray = new Object();

    myArray["firstname"] = "Gareth";
    myArray["lastname"] = "Simpson";
</code></pre>

<p>Also I have function that returns elements (it's value depends from different conditions):</p>

<pre><code>function getNewElement(condition1, ..., conditionN) {

        ...
        return { "my btn": function() { alert(kkk); } }
}
</code></pre>

<p>How I can add to <code>myArray</code> value that returns me <code>getNewElement</code> function?</p>
