we'd like to avoid using the onclick attribute -- we feel it's bad practice to mix javscript and html like that -- instead, add the click handler in javascript as part of the page init