Organized index.js