remove js redundancy for sidebar sizer (calls and function).