Transfer a onedimensional Array from .txt with more than one Value for each element into Javascript

I have been working on a Snake game and wanted to visualize it not only in python but also on a Website. So now I have the body of my snake (coordinates for each body part) wrote into a .txt file but I am not quite sure if I can transfer this sort of Array to JS because I am not very experienced in JS.

In case this sort of Array is not transferable to JS, is there another way i could visualize an Array like this?

Example of a 4 block long snake (one block = 20×20):
[(220, 420), (240, 420), (260, 420), (280, 420)]