Styling Scroll bars with Javascript and CSS

I am trying to achieve this functionality on this website
prototype solution
, how can i use this javascript and CSS styling with VAADIN, i have no idea how to run custom javascript, would this be possible with the NativeJS vaadin addon?

Any help on how to at least integrate JQuery js with Vaadin>

See this