refactor line_item_controller.rb ajax call to add items to cart