Jymin is a feature-rich JavaScript library that can be minified along with your application's JS.  The Jymin functions you don't use will drop out, leaving you with exactly what you need and nothing more.