A porting of linux tail command to NodeJS