Several bug fixes, use jquery plugin for scrolling in sidebar

Scrollbars behave differently across OSes, OS versions, browsers... This was causing issues with overflow, so I switched to a pure javascript implementation for