cart.js bug fix