Moved code to jQuery plugin form. Documentation comming soon