Here is a button:
and a bound event:
$(\"#addToCart\
Status Code:301 MOVED PERMANENTLY
No, your JavaScript is not causing this. It looks like your server is redirecting /cartManager/add to /cartManager/add/. Since the server wants a trailing slash, why not just add it and avoid the redirect?
/cartManager/add
/cartManager/add/