simpler worker function creation
reference global object directly
wait for next event loop when computing without workers
updated build
updated min