This commit implements minor refactoring changes in the SimpleCheckout.js file.
Related: coupons#19 (closed)