addEventListener helper.
Work through some ie8 bugs.