read.js now a func