Read original post by Dhananjay Kumar at Debug Mode
Let us first try to understand, why we need Namespace? I will try to explain you with an example, let us suppose you have a function named GreetingMessage in JS file named Library.js
Now you need to use this function on default.js. When you try to call that function from other js file , you get following exception.