Changed event listeners to Element prototype methods