Read a file using the FileReader API – JavaScript Tutorial