free Wix site needs event handler!

Hello; I have a free Wix site and want to add event handler coding to each page that has a contact form so that it will actually WORK. But when I added the code, it also showed up online! Help!!

https://support.wix.com/en/article/corvid-reacting-to-user-actions-using-events
https://support.wix.com/en/article/corvid-tutorial-adding-custom-interactivity-with-events
https://support.wix.com/en/article/corvid-index-of-examples

I think I may just turn ownership over to another person for this freebie Wix site … HOW do I go about getting the default coding that was in the Wix backend - back??