first version if the jQuery plugin