title: Scroll to element if it not in viewport
body: <p><a href="http://jscrollpane.kelvinluck.com/" rel="nofollow">jScrollPane</a> library have a <code>scrollToElement</code> method which can scroll to element if it not in viewport.</p>
  
  <p>Also this method have a <code>stickToTop</code> parameter which scroll as little as possible to show the element (not top of the viewport, like it do <code>scrollTop</code>).</p>
  
  <p>Anyone knows standalone plugin for that functionality? Or how it can be realised in JS (I'm not an expert in JS and I can't extract this function from jScrollPane).</p>