Added some useful functions for jquery collections.