Improved the 'on' eventListener assignment

removed the need to write ".element"