Fix #253 approach 2

https://github.com/BandManager/simplecart-js/commit/c2e77a67f8b9c05cc6290105c7793330603e11b8