Python Load Text File Into Array Methods Javascript