making index.js work