Now it uses an IIFE, and all my codes run when you load it up. I am not sure if there is an infinite loop because I was in the middle of testing when I closed the page.
None of my other pages appear to be having this issue.
Not sure why it just instantly just stops and saws something went wrong instead of allowing me to access it.
Ill try it on my home computer later to see if the network has anything to do with it (Maybe admin blocks websites that maybe could be dangerous due to how long they take to load).