added index.js and npmignore files