js and cart updates