Corrected index.js