Javascript Weird construction in simple object?
<p><a href="http://jsbin.com/ufihev/3/edit" rel="nofollow">http://jsbin.com/ufihev/3/edit</a></p>

<p>Pretty simple code : </p>

<pre><code>var t = new function () //line 1
    {
        this.a1 = function () {

            return function () {
                alert("1");
            };
        }();
        this.a2 = function () {
            alert("a2");
        };

    }; //line 16
t.a1();
</code></pre>

<p>But <strong>jsBin red line bellow</strong> tells me : </p>

<blockquote>
  <p>Line 1: var t = new function () --- Weird construction. Delete 'new'.</p>
  
  <p>Line 16: }; --- Missing '()' invoking a constructor.</p>
</blockquote>

<p>the code is working fine.</p>

<p>What am I doing wrong ?</p>
