To solve this problem I decided to use recursion through the list of the libraries. If library is loaded next recursion step is executed imidietely, if library is not loaded than next recursion step is executed on script load event. This allows to ensure that previous script is loaded.
So here is the code, so you will be able to see everything yourself. I believe that the best documentation and description of the program code is the actual code.
Please, let me know if you can see some better solution for that problem or if I miss something. In this article I am not touching versioning as it is not important for me now, but may be I will write an article about it soon, so follow my blog.