update Stripe.js which is currently v2: https://js.stripe.com/v2/ (see also https://stripe.com/docs/stripe.js)