Ths script is useful if you are making a libary that needs to do some jQuery-like functonality or are trying to make a jQuery plugin into a Javascript Liabry without jQuery. You can find some utility code to replace certain jQuery functions at http://youmightnotneedjquery.com/ To see usage example, see the Jquery-Replacement-Utility-Code-example-code.js
This code is in the public domain (however a link back to this page would be appreciated)