Can't Delete Properties - Header

I am trying to delete the onViewport_Enter and onViewport_Leave functions from my header and they will not work. Because I cannot delete the properties, it brakes any other code I try to write around it. How can I do this? I have tried contacting Wix directly and they were unable to help me.