changed index script to index.js