You need a client-side dependency management and build system. What I mean by this is:
A client-side script loader that does dependency management and can package your scripts for rapid download.
There are only 2 that I'm aware of that qualify are RequireJS and StealJS. There are 3 reason to use these systems:
- Easy, Parallel, Isolated Development
- Integrated Build Systems
- They work on every system