Update Checkout.js

idiomatic JS
Merge pull request #1 from benbrunton/patch-1

Update Checkout.js