live javascript for checkout page