Fix #253 approach 2

https://github.com/phproberto/simplecart-js/commit/392d44f6d4fc7a4eb108a84a7529beac3dc9430e