Edited index.js