Javascript object method does not update variable
<pre><code>var myUser = (function () {
    var username = "",
    var isConnected = false;
    return {
        setUsername: function (n) {
            username = n;
        },
        setConn: function (connStatus) {
            isConnected = connStatus;
        },
        user: username,
        isCon: isConnected
    };
}());
</code></pre>

<p>When I call</p>

<pre><code>myUser.setUsername("user123");
</code></pre>

<p>username variable does not get updated.</p>

<p>Any advice?</p>
