Fixed breaking JS for sidebar scroll, if class doens't exist