How to create javascript object with custom name?
<p>It's a little bit difficult to explain what I need, so I'll use some non-working code:</p>

<pre><code>function createSimpleObjet(name, value){
    return {
        name: value
    };
}

//create it
var obj = createSimpleObject('Message', 'Hello World!');
//test it:
alert(ojb.Message); //should alert 'Hello World!'
</code></pre>

<p>How would I go about?</p>
