refactorise cart-manager.js (updteOnResponse)