main.js setEventListeners

add chart handler prototype