adding index.js for npm