Made a jquery plugin of this excellent script.

A made a jQuery plugin based on your script.