HTML CustomEvent Polyfill that works with PhantomJS & modern browsers & packaged for component.io
Because MDN's polyfill has a typo & CustomEvents don't work in PhantomJS.
Assuming you're down with component, require it somewhere early on like so,
require('gss-preparser');
// ...
Or, just hack & paste CustomEvent.js