quick, dirty example of using Event Delegation in JavaScript