Updated to use kriskowal's Q library for handling FS.readFile and FS.writeFile