jquery plugin implementation

All functionality wrapped to jQuery plugin