working on checkout.js