[js events] add global events registry
[js event] use events registry instead of timers & watches individual registries