Use require instead of fs.readFileSync.