Fix typo
Fix CustomEvent polyfill to correctly use 'detail'