Lots of JS errors on initial page load

@markus89200 OK. I will ask the team about these errors and report back as soon as I have more information.

It will help us to troubleshoot if you post your full code here, not just the errors. Thanks.