So first things first. Add to cart using your JS. Once you mastered that, do your Proxy callback, and when you get back a variant ID and quantity, push it to the cart. So two calls. One result. App Proxy to update cart.