add js for sidebar ajax