modify node js summarize