AJAX library not added when cart is empty