JQuery added and used for readability.
Replaced uses of 'this' keyword with e.target and e.currentTarget in event listener functions.