js filereader for points