4 Oct The classic Module Pattern wraps all the code for a script in an anonymous function literal, which is assigned to a single variable when it returns. A function- literal is simply a function which calls itself, so the eventual assignment of a function-literal is not a function, it's whatever value the function returns. The ideal program has a crystal clear structure. The way it works is easy to explain, and each part plays a well-defined role. A typical real program grows organically. New pieces of functionality are added as new needs come up. Structuring—and preserving structure—is additional work, work which will only pay off in the. dependency free, modular programming with radioJS and require JS.