Array being doubled after reading a .txt file using fs in nodejs