Pulled fs.readFileSync and buf.toString out