Adding index.js to scripts