Load JavaScript asynchronously with ScriptInclude

When I code in browser-based JavaScript, I often miss the #include statements of C and other languages. I decided I'd implement it in JavaScript!

ScriptInclude is a little JavaScript library that allows you to include files. It works like this:

ScriptInclude.include('backbone.js', 'jquery.js', function() {
    // Backbone and jQuery are loaded in, let's go for it
});

There are a couple of other things that you can do with it; you can see those in the readme on GitHub.

There are a number of package managers for JavaScript already. I can't claim that ScriptInclude is the best, but it's really simple and that's where I hope it shines.

Go take a look! Let me know what you think.