It is, to some degree. For one, you buy into certain module management systems when you choose a library like jQuery, Dojo, MooTools. Another example: you buy into unique implementations of promises which are used throughout the library. If you used jQuery before 1.5, you didn't even have them and had to use callbacks -- that definitely impacts your architecture.