Converted to jQuery plugin. Sticky panel can attach on left or right side