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

- [ ] Code Review @und3f1n3d