Update overlay.js

In Firefox prevents a:
"TypeError: Not enough arguments to CustomEvent.initCustomEvent."

This error doesn't allow the overlay to be shown again.
Merge pull request #1342 from HugoDaniel/patch-1

Fix a CustomEvent error in Firefox

"TypeError: Not enough arguments to CustomEvent.initCustomEvent."