I\'m trying to split my long JavaScript code into different libraries.
I\'m trying to write a wrapper script that will load all my libraries:
//this
What you are looking for is called "Dependency Management". There are several solutions out there for this problem.
One big one is RequireJS: http://requirejs.org/docs/start.html
See also: