Safari CustomEvent typeof is object (silly, but ok)