example of using on.click with dynamic elements

Unless otherwise specified, all code here is licensed GPLv2