Should fix CustomEvent issue with new greasemonkey versions

Issue #40