addEventListener isn't supported in IE until 9 so it's worth adding a fallback or using jQuery.