var yourNamespace = { foo: function() { }, bar: function() { } }; ... yourNamespace.foo();
References
http://stackoverflow.com/questions/881515/how-do-i-declare-a-namespace-in-javascript
https://javascriptweblog.wordpress.com/2010/12/07/namespacing-in-javascript/