added asynchronous callback since node only creates one process for all http request. Old code wouldn't work if multiple users tried to load website without delay if accessing database or some operation which takes a long time.