Updated to jQuery plugin