bugfixing in basket.js