So I am making a javascript text rpg for a friend who requested it, anyway the code is written so when the page is load / reloaded the code will run. I tried it without the name enter section and it works, so there must be something wrong with that section.
I have attached the code, so you can see it in context.
Thanks in advance