process.nextTick for browser