Making index.js