Fix for sidebar scroller

This should resolve the bug in issue scala/scala.github.com#38

I've tested in Chrome and Firefox under Ubuntu 13.04. Considering the calculations are done by jQuery it should work the same cross-browser and cross-platform. I don't have access to a Windows machine at the moment to test on browsers there.