Fix for overloaded GetEvent function

It looks like JavaScript doesn't support function overloading.  Who
knew?