example of serial read in nodejs