thank you. i take it that, everything between script tags is read by the browser on page load, and global variables are assigned, and event listeners are assigned. therefor it is not necessary to call a function to assign an event listener.
see, when someone shows me the way, i am not bad at turning around and recapitulating how we got here. your help is appreciated.