switch to jQuery plugin