Fixed JavaScript event error on checkout.