Change handlers to use addEventListener

- Code was using old school event handlers, updated to the more standards compliant addEventListener instead so that it is more flexible in the future
Merge pull request #1 from joshsalverda/useEventListeners

Change handlers to use addEventListener