Legal use of creating a new object on a global namespace
<p>Would this be a legal use of creating an object on a global namespace? My goal is to create 1 global namespace for this application. Also how would I alias MYNYTE.app? Could I do something like this with out polluting the Global namespace:  <strong>var b = MYNYTE.app;</strong></p>

<pre><code>if( ! MYNYTE ) MYNYTE = {};
if( ! MYNYTE.app ) MYNYTE.app = {};


MYNYTE.app.Playbook = function(){

    this.change = '';
    this.boo = function(){alert('boo');}


    this.setChange = function( v )
    {
        this.change = v;    
    }

    this.getChange = function( v )
    {
        return this.change;
    }
}

var test    = new MYNYTE.app.Playbook();
var test2   = new MYNYTE.app.Playbook();

test.boo();
test.setChange( 'Change is bad' );
test2.boo();
test2.setChange( 'Change is great' );
console.log( test2.getChange() );
console.log( test.getChange() );
</code></pre>
