Improved performance

In the previous version we invoked functions element.css/addClass/removeClass every single time whenever the scrolling event has triggered. It's an extremely expensive operation because it forces reflow (recalculation) even if we haven't changed anything. It can be seen in complex layouts.
Now we call aforementioned functions only when we change the state of the sticky block.