fix: don't lose scroll in sidebar if reloading
fix jshint errors