Read up on a simple tutorial Here
Namespacing is used to avoid polluting the global namespace (no window. variables). In truth, each namespace is just a big variable, that has many properties and methods.
This happens, because in javascript you can have whole functions (methods) as variables