[js] support removal of all emitted events on an object by placing all event listeners under a common root