Not your errorvar fs = require('fs');function readJSON(path, cb) { fs.readFile(path, 'utf8', function(err, data) {...
Not your error
var fs = require('fs');

function readJSON(path, cb) {
  fs.readFile(path, 'utf8', function(err, data) {
  ...