I found a great JavaScript library (Ajile) that completely handles namespace creation *and* importing. It's amazing! Check it out @ http://ajile.iskitz.com/.
It allows multi-level namespaces like this:
Expand|Select|Wrap|Line Numbers
- Package ("com.mycompany.MyLibrary");
Expand|Select|Wrap|Line Numbers
- Import ("com.yourCompany.YourLibrary");
This library makes it so You only have to worry about the one script you need. Any other dependent scripts can define their own dependencies which are automatically imported at run-time.
It's awesome!