edit js for siderbar