Update EventListener.js

try to create the CustomEvent instead of checking for its existence to account for versions or IE (9+) that expose CustomEvent while in standards mode but don't allow it to be used for some reason.