I have not done this, so I could be mistaken.
If the github storage is storing javascript libraries, unfortunately creating a Javascript library is a rather complex task, not for the faint of heart.
If the github storage is just storing script files, then including them would require doing a cut and paste, which is what we are tyring to be avoid. However, cut and paste is pretty much how I do it now.
The javascript language does allow for including scripts from external sources, but that only works on web pages using HTML. Memento is not a web page.
The "eval()" method does act sort of like a compiler "include" statement, and does work (the source is kept in another library, so it is always accesable). I have it setup in a couple of libraries just to see if it would work. It does, but it is a little awkward, and of course vulnerable.