Update slidebars.js

Here is my fix to #30 , if its suitable - please use it :)