Node.js line parser for text files