Moved file import logic to fs.js