Naji
A library might be a file or some files of javascript code. It is possible to add into C2 plugin.
Here is one of my plugin which uses a library.
I have a question popped on my mind, if you use JavaScript to make plugins then why your profile picture is python?