Not sure how you feel about this function. Seems like there could be something more generic hanging from `$.fn`.