Simplified index.js