node module for parsing file and writing into another file