Update read() API and test.
Update read.js API again.