A simple function for creating namespaces in JavaScript.