How threads in Node.js work?