Being stable is the most important. If it does what you need to do and if you can figure it out, then the only thing left is if it's stable.
If it has a clear interface documentation is not as important - and if it has a poor interface documentation is more important. If it is a massive project which many things can be done with it and your intended use may change in the future (TineMCE for example) then an active support forum is required.
Opensource really helps but is not required. If it is not open-source a demo is required so that you can write all of the code you need to interface with it first before you purchase it.
So far, the coolest liscence scheme in a library i've seen is Js-Ext. It is open source if your application is; but you need a license if you want to make money with your project.