How to properly call a function in an event handler - Kevin Powell - Community