I figured out how to do it and if anyone wants to know how, literally all you have to do is copy and paste the entire library code into the AngularJS file.
I was using a different method before but it required you to reload the Javascript code and also it could break easily if other mods relied on the same technique. And so what I do now is minimize the library code all into one line and paste that in so it doesn't take up the entire file lol.
That probably makes it ultra messy for anyone who wants to look into your code to see how it works but ok