Im a little new to JS / jQuery and this site is on shopify so i cant do much with functionality so trying to work around with JS but i need to grab the values, strip the currency then add them together and re-display but this is as far as ive got but not working...

Any ideas?

```js
setTimeout(function() {
  var a = $(".cart-total span").html().replaceText(/$|£/gi, "");
  var b = $("#estimated-shipping em").html().replaceText(/$|£/gi, "");
  var total = a + b;
  $('.cart-finalTotal span').html("£" + total);
  console.log(total);
}, 1000);
```

```html
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<div class="cart-right">

  <p class="cart-total">Sub-Total<span class="money">£249.00</span>
  </p>
  <p class="cart-vat">VAT 20% (included)<span class="money">£49.80</span>
  </p>
  <p class="cart-delivery">Delivery<span class="money" id="estimated-shipping">+ <em>$9.00</em></span>
  </p>
  <p class="cart-finalTotal">Total<span class="money">£249.00</span>
  </p>
  <div class="cart-checkout">

    <button class="button button-primary button-add-to-cart button-pay-now" type="submit" name="checkout"><span class="icom-lock"></span>Pay Now</button>

    <br>
    <br>

    <div class="additional-checkout-buttons">
      <p>Or checkout with</p>
      <img id="applePayButton" style="display: none" src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==" onload="typeof createApplyPayButton === 'function' ? createApplyPayButton(this) : window.addEventListener('applePayReady', (function(){createApplyPayButton(this)}).bind(this))">
      <input type="image" name="goto_pp" value="paypal_express" src="https://www.paypalobjects.com/en_US/i/btn/btn_xpressCheckout.gif">
    </div>

  </div>

</div>
```