Understanding Computation in NodeJS