moved to addEventListener
Merge pull request #2 from DimitarChristoff/ie11-load-error

moved to addEventListener