Javascript literal nested object - refer to top level properties
<p>I'm writing a client side for mobile app that work with restful style web services.</p>

<pre><code>var globApp = {
    sessionId : "",
    lastActionName: "",
    userName : "2victor",
    md5Pwd : "1234",
    hostApiPath : "http://host/api",
    action : {
        login : {
            scriptPath : "/acc/login",
            method : "PUT",
            requestParams : {
                user : this.userName,
                pwd : this.md5pwd
            },
            responseParams : {

            }
        },
        register : {
            scriptPath : "/acc/reg",
            method : "POST",
            requestParams : {
                user : "myUserName",
                fname : "myFirstName" ,
                lname : "myLastName" ,
                email : "mail@mail.com" ,
                age : "28" ,
                gender : "male" ,
                pwd : "1234" ,
                priv : "good"
            },
            responseParams : {

            }
        }
    }
}
</code></pre>

<p>Properties userName and md5pwd will be assigned when application start.
What I want to achieve is, to assign this values to user and pwd properties under requestParams object for each action. Of course using this doesn't work and return undefined cause this in that case refers to the nested object if I understand correct.</p>

<p>This requestParams object is sent as JSON by AJAX.</p>

<p>I can define few variables out of this object and use them but I don't want to.</p>

<p>How it can be done?</p>
