How to ship javascript library with plugin?

Just add the js lib at the assets folder in your plugin, or if available, as a gem dependency.