add js logic of cart page