Improves index.js