updated js files for sidebar problem