With Actionscript 2 projects I have been used to work with classes files organized in a tree structure. Each class can use one or more other classes with the *import* keyword. This is a widespread structure in class-based programming languages (Actionscript, C #, Java, etc...).
So while working with Javascript my first thought was to reproduce this so practical structure. This is why some time ago I create a Javascript file loading system that makes possible to recreate this structure with Javascript when taking my first steps with Ajax. I recently had the occasion to use this project, I wanted to give it to the community.
Go to the full AjaxClassLoader project's page.