index.js fixed