ensure that ns is not undefined at the start
Merge pull request #20 from jeremyBass/master

[PR] hotfix - ensure that ns is not undefined at the start