Debugging- Messing with the click event

Try to resolve the issue of my click event  being undefined