created read.js for JSON