Page code stopped working After I changed the name

Question:
Hi I have some page code to run an accordion menu i setup. It was working perfectly and I even published it so I could test out some stuff. Now all of a sudden it has stopped working.

I have not changed the code. i did change the name of the page as we are going to change some things but all the ids and stuff are the same. I added a console.log to the page code (in the $w onReady function) and its not running in the page at all. Am I missing something? Did changing the name of the page cause this error?

Product:
wix studio editor

What are you trying to achieve:
I want my code to work again

What have you already tried:
console.log showed the code wasnt running at all. I cant seem to find anyone whose fixed this issue
Additional information:
[Include any other pertinent details or information that might be helpful for people to know when trying to answer your question.]