Node.js Synchronous vs Asynchronous programming in nodejs