Add flatten && flatMap to utils
Add comments to cart, refactorted splitting code
Add comments to cart.js