fix a bunch of errors in console, and fix add to cart button on product detail