add load es5 when window.CustomEvent is undefined