took out unnecessary logic in routes/files.js