Add addEventListener-identifying attribute synchronously