-Generalizing the jQuery functionality