Habs jetzt so bei onUserJoined:

if (!Date.now) {
Date.now = function now() {
return new Date().getTime();
};
}

und bei onUserLeft einfach

Date.now = false;