updated the jQuery plugin