full transition to a jQuery plugin