check nodejs version and using request.resume function for serving html