JS :: Add to cart functionality, needs cleaning