Refactor Parse logic to api.js, implement addToCart logic on backend for /buy/id url.