A simple cart manager written in JavaScript