cross node/browser nexttick