function, I pass in an anonymous function as a callback that simply returns the

championFile

.

EDIT: as pointed out, the callback was not obvious. I used

fs.readFile

instead of

fs.readFileSync

when writing the callback, I didn't notice I had changed it somewhere along the way (maybe I took it over from the internet, maybe Atom suggested it and I accidentally used it) - sorry for any confusion.