Having difficulties calling a custom function from an event listener

Answered here - Reusable Controls Issue