adding sidebar to js