fixed missing require for the fs modules and the path for readFileSync