I added the code as per your instructions and nothing worked with adding the product to the cart. It was on the cart page.
It was on debut theme.
Several people talk about how it has never worked for them on this thread yet. Saying basically exactly the same thing. The first comment talks about how it doesn't add to cart.
brought in cart.js, added the code to cart template. Then added in the JS. Nothing happens.