JavaScript Refactor

Refactored .onclick handler to .addEventHandler.