Fix cart creation in cart.js

Quick fix for later versions of jquery where an empty response throws a 'parseerror' and won't call the success callback.
Possible fix for #9