Change readAsText() to read() as per API change