cleaned up checkout.js