Fix wrong syntax on addEventListener