Use of NameSpace in JavaScript