Add CustomEvent browser global

See specification at https://developer.mozilla.org/en-US/docs/Web/API/CustomEvent