index.js cleaned