fixed index.js