emulation of webworkers for nodejs, because MessageChannels are not supported there yet