changing to index.js for npm