Check for addEventListener only once

Check for addEventListener only once and store in a variable called modern