JavaScript Integration of Smart Checkout