Fill index.js with non-working function