I created a javascript application with all of the code in one file. The application has grown quite a bit and I think it\'s time to split it up into multiple files, but I\'
Give require.js a shot. http://requirejs.org/
Example:
require(["dir/file"], function() { // Called when file.js loads });