Add log.js and loadFilePaths function