Cleaned up index.js route file