Looking at the source i do see that Production version of javascript is getting loaded <script type="text/javascript" src="https://js.squareup.com/v2/paymentform"></script>
The logs are showing many references to squareupsandbox.com, so it sounds like you’re still loading the sandbox (https://js.squareupsandbox.com/v2/paymentform) from somewhere. If you’re using production application id, that would explain the 401 and authorization errors since it’s hitting sandbox.